Skip to content

Conversation

@MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Apr 8, 2024

Converted DownloadTask and DataTask to value types and added more Sendable annotations where needed.

Achieved by converting `DownloadTask` and `DataTask` to value types and adding more `Sendable` annotations where needed.
@MaxDesiatov MaxDesiatov requested a review from xedin April 8, 2024 09:45
@MaxDesiatov MaxDesiatov self-assigned this Apr 8, 2024
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) April 8, 2024 09:45
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test


import Basics

import Build
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated warning, but probably not worth a separate one-liner PR, so chucking that in here instead.

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

options: Request.Options = .init(),
observabilityScope: ObservabilityScope? = .none,
completion: @escaping (Result<Response, Error>) -> Void
completion: @Sendable @escaping (Result<Response, Error>) -> Void
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stylistic nit: I think the preferred ordering for function types is @escaping @Sendable

@MaxDesiatov MaxDesiatov merged commit 549d781 into main Apr 9, 2024
@MaxDesiatov MaxDesiatov deleted the maxd/sendable-httpclient branch April 9, 2024 17:03
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
Achieved by converting `DownloadTask` and `DataTask` to value types and adding more `Sendable` annotations where needed.
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
Achieved by converting `DownloadTask` and `DataTask` to value types and adding more `Sendable` annotations where needed.
bnbarham pushed a commit to bnbarham/swift-package-manager that referenced this pull request May 18, 2024
Achieved by converting `DownloadTask` and `DataTask` to value types and adding more `Sendable` annotations where needed.

(cherry picked from commit 549d781)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants